<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:p="http://primefaces.org/ui">

    <f:view contentType="text/html">
        <h:head>
            <f:facet name="first">
                <meta content='text/html; charset=UTF-8' http-equiv="Content-Type"/>
                <title>PrimeFaces</title>
            </f:facet>
        </h:head>

        <h:body>

            <p:layout fullPage="true" onResize="#{controller.resultSplitPos}">

                <p:layoutUnit position="north" size="100" resizable="true" closable="true" collapsible="true">
                    Header
                </p:layoutUnit>

                <p:layoutUnit position="south" size="100" closable="true" collapsible="true">
                    Footer
                </p:layoutUnit>

                <p:layoutUnit position="west" size="175" header="Left" collapsible="true">
                    <h:form id="menu">
                    <p:menu>
                        <p:submenu label="Resources">
                            
                            <p:menuitem value="Demo" url="http://www.primefaces.org/showcase-labs/ui/home.jsf" />
                            <p:menuitem value="Documentation" url="http://www.primefaces.org/documentation.html" />
                            <p:menuitem value="Forum" url="http://forum.primefaces.org/" />
                            <p:menuitem value="Themes" url="http://www.primefaces.org/themes.html" />

                        </p:submenu>
                        <p:submenu label="WUDT">
                            <p:menuitem id="Flanges" value="Kołnierze" action="#{menuController.setPage('wudt/019_FlangesData')}" update=":dataContent:data"/>
                            <p:menuitem id="Vessels" value="Baniaki" action="#{menuController.setPage('index')}" update=":dataContent:data"/>
                            <p:menuitem id="Test" value="test" action="#{menuController.setPage('test')}" update=":dataContent:data"/>
                        </p:submenu>

                    </p:menu>
                    </h:form>
                </p:layoutUnit>

                <p:layoutUnit position="center">
                    <p:layout expandTitle="true">
                        
                        <p:layoutUnit position="center" header="Dane projektu" resizable="true" style="font-size: 12px">  
                        <h:form id="dataContent">    
                            <p:panel id="data">
                                <ui:include src="#{menuController.page}.xhtml" />
                            </p:panel>    
                        </h:form>        
                        </p:layoutUnit> 
                            
                        <p:layoutUnit position="east" 
                                      resizable="true" 
                                      size="#{controller.resultSplitPos}"
                                      minSize="100" 
                                      maxSize="1000"
                                      header="Wyniki obliczeń"
                                      style="font-size: 12px">  
                            <h:form id="resultContent">
                                <p:panel id="result">
                                    <ui:include src="wudt/019_FlangesResult.xhtml" />
                                </p:panel>
                            </h:form>
                        </p:layoutUnit>                         
                    </p:layout>   
                </p:layoutUnit>
            </p:layout>
        </h:body>
    </f:view>
</html>

